package com.jnzc.ocr.serv.shop.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(description = "店铺营销方案信息")
public class ShopMarketingPlan {
    @ApiModelProperty(value = "店铺营销方案ID")
    @TableId
    private Long id;
    @ApiModelProperty(value = "店铺ID")
    private Long shopId;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "营销类型(参考营销规则)")
    private Integer marketingType;
    @ApiModelProperty(value = "营销类型名称")
    private String marketingTypeName;
    @ApiModelProperty(value = "产品分类ID")
    private Long productCategoryId;
    @ApiModelProperty(value = "产品分类名称")
    private String productCategoryName;
    @ApiModelProperty(value = "会员类型ID")
    private Long memberCategoryId;
    @ApiModelProperty(value = "会员类型名称")
    private String memberCategoryName;
    @ApiModelProperty(value = "开始期限")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTerm;
    @ApiModelProperty(value = "结束期限")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTerm;
    @ApiModelProperty(value = "状态(1: 正常, 2: 失效)")
    private Integer state;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMarketingType() {
        return marketingType;
    }

    public void setMarketingType(Integer marketingType) {
        this.marketingType = marketingType;
    }

    public String getMarketingTypeName() {
        return marketingTypeName;
    }

    public void setMarketingTypeName(String marketingTypeName) {
        this.marketingTypeName = marketingTypeName;
    }

    public Long getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Long productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public String getProductCategoryName() {
        return productCategoryName;
    }

    public void setProductCategoryName(String productCategoryName) {
        this.productCategoryName = productCategoryName;
    }

    public Long getMemberCategoryId() {
        return memberCategoryId;
    }

    public void setMemberCategoryId(Long memberCategoryId) {
        this.memberCategoryId = memberCategoryId;
    }

    public String getMemberCategoryName() {
        return memberCategoryName;
    }

    public void setMemberCategoryName(String memberCategoryName) {
        this.memberCategoryName = memberCategoryName;
    }

    public Date getStartTerm() {
        return startTerm;
    }

    public void setStartTerm(Date startTerm) {
        this.startTerm = startTerm;
    }

    public Date getEndTerm() {
        return endTerm;
    }

    public void setEndTerm(Date endTerm) {
        this.endTerm = endTerm;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}